<?php

//use Illuminate\Support\Facades\Schema;
use Jialeo\LaravelSchemaExtend\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateShopRechargesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
		Schema::create('shop_recharges', function (Blueprint $table) {
            $table->comment = '充值模板表';
            $table->increments('id')->comment('充值模板ID');
			$table->decimal('money',8,2)->default('0.00')->comment('到账金额');
			$table->decimal('selling_price',8,2)->default('0.00')->comment('售价');
			$table->integer('sort')->default(1)->comment('排序');
			$table->tinyInteger('status')->default(1)->comment('显示状态:0=隐藏,1=显示');
            $table->timestamps(); 
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('shop_recharges');
    }
}
